package com.example.gamestore.service.Impl;

import com.example.gamestore.mapper.LoginInfoMapper;
import com.example.gamestore.pojo.LoginInfo;
import com.example.gamestore.service.LoginInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

@Service
public class    LoginInfoServiceImpl implements LoginInfoService {
    @Resource
    private LoginInfoMapper loginInfoMapper;

    @Override
    public void addLoginInfo(LoginInfo loginInfo) {
        loginInfo.setLoginTime(new Date());
        loginInfoMapper.addLoginInfo(loginInfo);
    }
}